package com.he.DesignPatterns.command;

/**
 * @description: 请求类
 * @Author: HCL
 * @Date: 2024/9/27 14:33
 */
public class Stock {

    private String name = "小明";


    public void buy(){
        System.out.println(name+"买了");
    }

    public void sell(){
        System.out.println(name + "卖了");
    }
}
